<%--
    Document   : create fragment for task
    Created on : Mar 10, 2014, 10:54:45 PM
    Author     : Anton Strack
--%>
<div class="csd_content_form">
    <form method="POST" action="${config.getPath()}">
        <div class="form-group">
            <label class="form-control" for="recipient">Categories</label>
            <p>Select the categories to add to the ${postTypeName} post.</p>
            <select class="form-control" id="categories" name="categories" multiple="3">
                <c:forEach items="${beans}" var="bean" >
                    <option value="${bean.id}" title="${bean.description}">${bean.name}</option>
                </c:forEach>
            </select><br />
            <label class="form-control" for="postId">${postTypeName}s</label>
            <p>Select the ${postTypeName}s to add the categories to.</p>
            <select class="form-control" id="postId" name="postId">
                <c:forEach items="${posts}" var="post" >
                    <option value="${post.id}">${post.name}</option>
                </c:forEach>
            </select><br />
            <input type="hidden" id="postTypeId" name="postTypeId" value="${postTypeId}" />
        </div>
        <button class="btn btn-primary" name="formSubmit" id="formSubmit" value="add-category" type="submit">Add to ${postTypeName}</button>
    </form>
</div>

